//
//  MakeImage.swift
//  anxinapp
//
//  Created by iDev on 6/22/17.
//  Copyright © 2017 iDev. All rights reserved.
//

import UIKit


func colorImg(color: UIColor) -> UIImage?{
    let rect = CGRect(x: 0, y: 0, width: SCREENWIDTH, height: SCREENHEIGHT)
    UIGraphicsBeginImageContext(rect.size)
    let context = UIGraphicsGetCurrentContext()
    context?.setFillColor(color.cgColor)
    context?.fill(rect)
    let img = UIGraphicsGetImageFromCurrentImageContext()
    
    UIGraphicsEndImageContext()
    return img
}
